\hypertarget{classRobot}{\section{\-Robot \-Class \-Reference}
\label{classRobot}\index{\-Robot@{\-Robot}}
}


\hyperlink{classRobot}{\-Robot} is the \-High \-Level implementation on \-Can\-Bot. \-This class is responsible for the calculation of robot movements.  




{\ttfamily \#include $<$\-Robot.\-h$>$}

\subsection*{\-Public \-Member \-Functions}
\begin{DoxyCompactItemize}
\item 
\hypertarget{classRobot_a727510f7a66c008f505dc5e2f107f2bd}{{\bfseries \-Robot} (int tol\-\_\-arc, int tol\-\_\-distance)}\label{classRobot_a727510f7a66c008f505dc5e2f107f2bd}

\item 
void \hyperlink{classRobot_ae36c332d00a584bbc9f9ccf7db54b933}{\-Update\-Robot} (\hyperlink{structPackage}{\-Package} data)
\item 
void \hyperlink{classRobot_ab3a82c0e27bbc3fda659e6388387c9f7}{\-Update\-Target} (\hyperlink{structPackage}{\-Package} data)
\item 
int \hyperlink{classRobot_adf8ed82f9f478e6de2691f3d59633f53}{\-Calc\-Turn} ()
\item 
void \hyperlink{classRobot_a8a925b036bc76c19637aad441492556f}{\-Turn} (int arc, \hyperlink{classCanBotLL}{\-Can\-Bot\-L\-L} $\ast$c)
\item 
int \hyperlink{classRobot_ab74905f32ff6cef935a39aebe3d7cf92}{\-Calc\-Distance} ()
\item 
void \hyperlink{classRobot_ac4dd2fece1b7cee2874549d082bcce2e}{\-Drive} (int distance, \hyperlink{classCanBotLL}{\-Can\-Bot\-L\-L} $\ast$c)
\end{DoxyCompactItemize}


\subsection{\-Detailed \-Description}
\hyperlink{classRobot}{\-Robot} is the \-High \-Level implementation on \-Can\-Bot. \-This class is responsible for the calculation of robot movements. 

\subsection{\-Member \-Function \-Documentation}
\hypertarget{classRobot_ab74905f32ff6cef935a39aebe3d7cf92}{\index{\-Robot@{\-Robot}!\-Calc\-Distance@{\-Calc\-Distance}}
\index{\-Calc\-Distance@{\-Calc\-Distance}!Robot@{\-Robot}}
\subsubsection[{\-Calc\-Distance}]{\setlength{\rightskip}{0pt plus 5cm}int {\bf \-Robot\-::\-Calc\-Distance} (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}}\label{classRobot_ab74905f32ff6cef935a39aebe3d7cf92}
\-Deze functie berekend op hoog niveau de afstand tot het target \hypertarget{classRobot_adf8ed82f9f478e6de2691f3d59633f53}{\index{\-Robot@{\-Robot}!\-Calc\-Turn@{\-Calc\-Turn}}
\index{\-Calc\-Turn@{\-Calc\-Turn}!Robot@{\-Robot}}
\subsubsection[{\-Calc\-Turn}]{\setlength{\rightskip}{0pt plus 5cm}int {\bf \-Robot\-::\-Calc\-Turn} (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}}\label{classRobot_adf8ed82f9f478e6de2691f3d59633f53}
\-Deze functie berekend op hoog niveau welke hoek gemaakt moet worden tot het target \hypertarget{classRobot_ac4dd2fece1b7cee2874549d082bcce2e}{\index{\-Robot@{\-Robot}!\-Drive@{\-Drive}}
\index{\-Drive@{\-Drive}!Robot@{\-Robot}}
\subsubsection[{\-Drive}]{\setlength{\rightskip}{0pt plus 5cm}void {\bf \-Robot\-::\-Drive} (
\begin{DoxyParamCaption}
\item[{int}]{distance, }
\item[{{\bf \-Can\-Bot\-L\-L} $\ast$}]{c}
\end{DoxyParamCaption}
)}}\label{classRobot_ac4dd2fece1b7cee2874549d082bcce2e}
\-Deze functie herberekend de afstand en geeft deze door naar het low level team 
\begin{DoxyParams}{\-Parameters}
{\em distance} & de afstand die gereden moet worden \\
\hline
\end{DoxyParams}
\hypertarget{classRobot_a8a925b036bc76c19637aad441492556f}{\index{\-Robot@{\-Robot}!\-Turn@{\-Turn}}
\index{\-Turn@{\-Turn}!Robot@{\-Robot}}
\subsubsection[{\-Turn}]{\setlength{\rightskip}{0pt plus 5cm}void {\bf \-Robot\-::\-Turn} (
\begin{DoxyParamCaption}
\item[{int}]{arc, }
\item[{{\bf \-Can\-Bot\-L\-L} $\ast$}]{c}
\end{DoxyParamCaption}
)}}\label{classRobot_a8a925b036bc76c19637aad441492556f}
\-Deze functie herberekend deze hoek en geeft deze door naar het low level team 
\begin{DoxyParams}{\-Parameters}
{\em arc} & de hoek die gedraaid moet worden \\
\hline
\end{DoxyParams}
\hypertarget{classRobot_ae36c332d00a584bbc9f9ccf7db54b933}{\index{\-Robot@{\-Robot}!\-Update\-Robot@{\-Update\-Robot}}
\index{\-Update\-Robot@{\-Update\-Robot}!Robot@{\-Robot}}
\subsubsection[{\-Update\-Robot}]{\setlength{\rightskip}{0pt plus 5cm}void {\bf \-Robot\-::\-Update\-Robot} (
\begin{DoxyParamCaption}
\item[{{\bf \-Package}}]{data}
\end{DoxyParamCaption}
)}}\label{classRobot_ae36c332d00a584bbc9f9ccf7db54b933}
\-Deze functie leest data van het netwerk team in naar de parameters van deze classe 
\begin{DoxyParams}{\-Parameters}
{\em data} & struct van het netwerk team \\
\hline
\end{DoxyParams}
\begin{DoxySeeAlso}{\-See also}
\hyperlink{package_8h_source}{package.\-h} 
\end{DoxySeeAlso}
\hypertarget{classRobot_ab3a82c0e27bbc3fda659e6388387c9f7}{\index{\-Robot@{\-Robot}!\-Update\-Target@{\-Update\-Target}}
\index{\-Update\-Target@{\-Update\-Target}!Robot@{\-Robot}}
\subsubsection[{\-Update\-Target}]{\setlength{\rightskip}{0pt plus 5cm}void {\bf \-Robot\-::\-Update\-Target} (
\begin{DoxyParamCaption}
\item[{{\bf \-Package}}]{data}
\end{DoxyParamCaption}
)}}\label{classRobot_ab3a82c0e27bbc3fda659e6388387c9f7}
\-Deze functie leest data van het netwerk team in naar de parameters van deze classe 
\begin{DoxyParams}{\-Parameters}
{\em data} & struct van het netwerk team \\
\hline
\end{DoxyParams}
\begin{DoxySeeAlso}{\-See also}
\hyperlink{package_8h_source}{package.\-h} 
\end{DoxySeeAlso}


\-The documentation for this class was generated from the following file\-:\begin{DoxyCompactItemize}
\item 
\-Robot.\-h\end{DoxyCompactItemize}
